var request = require('./http').request;
var Methods;
(function (Methods) {
    Methods["get"] = "GET";
    Methods["post"] = "POST";
    Methods["put"] = "PUT";
    Methods["del"] = "DELETE";
})(Methods || (Methods = {}));
var get = function (url, params) {
    return request(Methods.get, url, params);
};
var post = function (url, params) {
    return request(Methods.post, url, params);
};
var put = function (url, params) {
    return request(Methods.put, url, params);
};
var del = function (url, params) {
    return request(Methods.del, url, params);
};
module.exports = {
    get: get,
    post: post,
    put: put,
    del: del
};
